/*
 * File:   engine_mock.cpp
 * Author: dolphinigle
 *
 * Created on December 1, 2011, 3:16 PM
 */

#include "engine_mock.h"

string EngineMock::Format(const Path& path, size_t size) {
  char buffer[100];
  sprintf(buffer, "%d", size);
  return "format " + path.ToString() + " " + buffer;
}

string EngineMock::MountFS(const Path& filesystem_location,
                           const Path& mount_point) {
  return "mountfs " + filesystem_location.ToString() + " " +
          mount_point.ToString();
}

string EngineMock::Unmount(const Path& mount_point) {
  return "umount " + mount_point.ToString();
}

string EngineMock::Pwd() {
  return "pwd";
}

string EngineMock::Ls() {
  return "ls";
}

string EngineMock::LsDirectory(const Path& directory) {
  return "ls " + directory.ToString();
}

string EngineMock::Cd(const Path& directory) {
  return "cd " + directory.ToString();
}

string EngineMock::Mkdir(const Path& path) {
  return "mkdir " + path.ToString();
}

string EngineMock::Rm(const Path& path) {
  return "rm " + path.ToString();
}

string EngineMock::Cp(const Path& origin, const Path& destination) {
  return "cp " + origin.ToString() + " " + destination.ToString();
}

string EngineMock::Mv(const Path& origin, const Path& destination) {
  return "mv " + origin.ToString() + " " + destination.ToString();
}

string EngineMock::Cat(const Path& filepath) {
  return "cat " + filepath.ToString();
}

string EngineMock::Status() {
  return "status";
}

string EngineMock::Exit() {
  return "exit";
}

